package top.zackyoung.jpa.dao;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import top.zackyoung.jpa.entity.SysUser;

/**
 * @author: ZackYoung
 * @time: 2020/9/18
 */
public interface SysUserRepository extends CrudRepository<SysUser,Long>, JpaRepository<SysUser,Long> {
    /**
     * 分页功能
     * @param pageable  分页
     * @return  返回page
     */
    @Override
    Page<SysUser> findAll( Pageable pageable);

    // @Modifying
    // @Transactional(rollbackOn = Exception.class)
    //
    // int updateById(SysUser sysUser);
}
